package com.collection;

import java.util.*;
public class PrintContainer {
    static Collection<String> fill(Collection<String> collection) {
        collection.add("jsdlkjfa");
        collection.add("klsjdkfajl");
        collection.add("weiruiowu");
        collection.add("kljskldjfl");
        collection.add("skjdkfal");
        return collection;
    }

    static Map<String, String> fill(Map<String, String> map) {
        map.put("ksdjlf", "sldjfaljsdkl");
        map.put("sdkfjaklsjl", "sdklfjaklsjdl");
        map.put("ksdjflas", "skdjflasjdkf");
        map.put("ksdlfjals", "skdjfalksj");
        return map;
    }

    public static void main(String[] args) {
        System.out.println(fill(new ArrayList<>()));
        System.out.println(fill(new LinkedList<>()));
        System.out.println(fill(new HashSet<>()));
        System.out.println(fill(new TreeSet<>()));
        System.out.println(fill(new LinkedHashSet<>()));
        System.out.println(fill(new HashMap<>()));
        System.out.println(fill(new TreeMap<>()));
        System.out.println(fill(new LinkedHashMap<>()));
    }
}
